import java.util.Arrays;


public class StringsE2 {
    /**
     * @param args
     */
    public static void main(String[] args) {
        String s = "http://google.com/service/email.php";
        String[] parts = s.split("[:/]+");
        System.out.println(Arrays.toString(parts));
    }

}
